<template>
  <div class="down_mian">
    <div class="down_wrap">
      <div>
        <el-breadcrumb separator-class="el-icon-arrow-right">
          <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item :to="{ path: '/outfit' }"
            >特装</el-breadcrumb-item
          >
           <el-breadcrumb-item
            >展会费用缴纳</el-breadcrumb-item
          >
        </el-breadcrumb>
      </div>
      <div class="query_row">
        <div class="add_mian">
          <div @click="dialogVisible = true" class="add_wrap">
            <div>添加展位</div>
          </div>
        </div>
        <div>
          <div>请选择需要缴纳费用的展位</div>
          <div>
            <el-table :data="tableData" style="width: 100%">
              <el-table-column type="selection" width="55"> </el-table-column>
              <el-table-column prop="date" label="展位号"> </el-table-column>
              <el-table-column prop="name" label="展位类型"> </el-table-column>
              <el-table-column prop="address" label="参展商"> </el-table-column>
              <el-table-column prop="address" label="展位面积">
              </el-table-column>
            </el-table>
          </div>
          <div class="foot_but">
                <el-button @click="hanldgo" type="danger">下一步</el-button>
          </div>
        </div>
      </div>
    </div>
    <!-- 弹窗区域 -->
    <el-dialog
      title="添加展位"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose"
    >
      <el-form
        label-position="left"
        ref="form"
        :model="form"
        label-width="80px"
      >
        <el-form-item v-if="exhibitiontype == 1" label="参展商 :">
          <el-select v-model="form.region" style="width: 300px">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item v-if="exhibitiontype == 2" label="参展商 :">
          <el-input style="width: 300px" v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item v-if="exhibitiontype == 0" label="参展方式 :">
          <el-radio-group v-model="form.exhibitiontype">
            <el-radio :label="1">通过展位号添加</el-radio>
            <el-radio :label="2">通过参展公司名称添加</el-radio>
          </el-radio-group>
        </el-form-item>
      </el-form>
      <div class="dialog-footer">
        <div>
          <el-button v-if="exhibitiontype !== 0" @click="hanldtype"
            >上一步</el-button
          >
        </div>
        <div>
          <el-button @click="dialogVisible = false">返 回</el-button>
          <el-button type="primary" @click="hanldadd">确 定</el-button>
        </div>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      shopdilog: false,
      type: "1",
      gjz: "",
      form: {},
      dialogVisible: false,
      checkList: [],
      exhibitiontype: 1,
      tableData: [],
    };
  },
  methods: {
    hanldgo() {
      this.$router.push("/fixedFee");
    },
  },
};
</script>
<style scoped>
.down_mian {
  background-color: #f2f2f2;
  padding: 20px;
  min-height: 430px;
}
.down_wrap {
  width: 1100px;
  margin: auto;
  background-color: #fff;
  padding: 20px 20px 10px 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #f2f2f2;
}
.add_mian {
  display: flex;
  margin: 20px 0;
}
.add_wrap {
  width: 90px;
  height: 40px;
  border: 1px solid #ff0000;
  color: #ff0000;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dialog-footer {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/deep/.el-radio-button {
  margin-right: 20px !important;
  /* border: 1px solid #9e9e9e; */
}
/deep/.el-radio-button__inner {
  border-radius: 0 !important;
  border-left: 1px solid #dcdfe6;
}
.list_for {
  padding: 20px;
  width: 21%;
}
.list_for:hover {
  cursor: pointer;
  border: 1px solid #e0e2e6;
  box-shadow: 0 0 9px 3px rgb(190, 189, 189);
}
.foot_but {
    margin: 20px 0;
    display: flex;
    justify-content: flex-end;
}
/deep/.el-table th.el-table__cell {
  background-color: #f8fcfc !important;
  text-align: center !important;
}
/deep/.el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
  text-align: center !important;
}
</style>